package com.hxf.dto;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

@Entity
@Table(name = "rk_app_user_restaurant")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true,dynamicInsert = true,dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class AppUserRestaurantDto extends BaseDto {

	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer appUserId;
	private Integer restaurantId;
	private Integer restaurantUserId;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id")
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getAppUserId() {
		return appUserId;
	}
	public void setAppUserId(Integer appUserId) {
		this.appUserId = appUserId;
	}
	public Integer getRestaurantId() {
		return restaurantId;
	}
	public void setRestaurantId(Integer restaurantId) {
		this.restaurantId = restaurantId;
	}
	public Integer getRestaurantUserId() {
		return restaurantUserId;
	}
	public void setRestaurantUserId(Integer restaurantUserId) {
		this.restaurantUserId = restaurantUserId;
	}
	
}
